/* --- PLIK: static/css/custom.css --- */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* 1. RESET KOLORÓW (Najważniejsze) */
:root, html, body {
    --surface-1: #f2efdf !important;
    --surface-2: rgba(255, 255, 255, 0.5) !important;
    --text-1: #2c3e50 !important;
    --text-2: #5d6d7e !important;
    background-color: #f2efdf !important;
    color: #2c3e50 !important;
}

/* 2. WYMUSZENIE TŁA NA GŁÓWNYCH ELEMENTACH */
/* To naprawi problem, jeśli motyw koloruje 'main' na czarno */
main, section, header, footer, .galleries {
    background-color: transparent !important;
    color: #2c3e50 !important;
}

/* 3. KAFELKI */
.card {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    
    /* Układ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    margin-bottom: 20px;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
}

/* Ukrycie obrazków */
.card figure { display: none !important; }

/* Teksty */
.card h2 {
    color: #2c3e50 !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* 3. Wygląd kafelków */
.card {
    /* Usuwamy background-color stąd, bo JS go ustawi */
    /* background-color: ... (zakomentowane) */
    
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    
    /* Układ - to zostaje !important */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    margin-bottom: 20px;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
}

/* Teksty w kafelkach - usuwamy sztywny kolor */
.card h2 {
    font-size: 2rem !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid transparent; /* Przygotowanie pod podkreślenie */
}

.card p {
    font-size: 1rem !important;
    font-family: 'Ubuntu', sans-serif !important;
}

/* Stopka */
footer, footer a { color: #5d6d7e !important; }

/* --- STYLOWANIE STRONY ALBUMU (single.html) --- */

/* 1. Nagłówek albumu */
.album-header {
    text-align: center;
    margin-bottom: 3rem;
}

.album-title {
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 700 !important;
    font-size: 3rem !important; /* Duży tytuł */
    color: #2c3e50 !important;  /* Granatowy */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
}

/* 2. Przycisk powrotu */
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db; /* Niebieski przycisk */
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-back:hover {
    background-color: #2980b9; /* Ciemniejszy niebieski po najechaniu */
    transform: translateY(-2px);
    text-decoration: none;
}

/* 3. Wygląd zdjęć w galerii */
.gallery-item img {
    border-radius: 12px !important;       /* Zaokrąglone rogi */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important; /* Cień pod zdjęciem */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid white !important;   /* Biała ramka jak w starych fotografiach */
}

/* Efekt po najechaniu na zdjęcie */
.gallery-item img:hover {
    transform: scale(1.03); /* Lekkie powiększenie */
    box-shadow: 0 12px 24px rgba(0,0,0,0.25) !important; /* Większy cień */
    z-index: 10;
    cursor: zoom-in;
}

/* 4. Poprawka dla kontenera galerii w tym motywie */
/* Motyw ustawia position:absolute dla zdjęć, więc musimy uważać z marginesami */
.gallery {
    margin: 0 auto;
}